package com.vast.admin.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.vast.system.entity.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

@ApiModel(description = "诉讼记录", value="com.vast.admin.entity.Lawsuit")
@Data
@TableName(value = "lawsuit")
public class Lawsuit extends SuperEntity implements Serializable {
    /**
     * 备注
     */
    @TableField(value = "remark")
    @ApiModelProperty(value="备注")
    private String remark;

    /**
     * 诉讼流程当前状态 0- 创建
     */
    @TableField(value = "status")
    @ApiModelProperty(value="诉讼流程状态 0-创建")
    private Integer status;

    /**
     * 当前流程截止时间
     */
    @TableField(value = "flow_deadline")
    @ApiModelProperty(value="当前流程截止时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") // 页面写入数据库时格式�?
    @JSONField(format = "yyyy-MM-dd HH:mm:ss") // 数据库导出页面时json格式�?
    private Date flowDeadline;

    /**
     * 诉讼流程类型id
     */
    @TableField(value = "lawsuit_flow_id")
    @ApiModelProperty(value="诉讼流程类型id")
    private Long lawsuitFlowId;
    /**
     * 诉讼流程类型id
     */
    @TableField(value = "lawsuit_flow_type_id")
    @ApiModelProperty(value="诉讼流程当前类型id")
    private Long lawsuitFlowTypeId;

    /**
     * 诉讼流程当前类型节点名称
     */
    @TableField(exist = false)
    @ApiModelProperty(value="诉讼流程当前类型节点名称")
    private String lawsuitFlowTypeName;

    /**
     * 诉讼流程类型名称
     */
    @TableField(exist = false)
    @ApiModelProperty(value="诉讼流程类型名称")
    private String lawsuitFlowName;

    /**
     * 诉讼名称
     */
    @TableField(value = "name")
    @ApiModelProperty(value="诉讼名称")
    private String name;

    /**
     * 申请人姓名
     */
    @TableField(value = "apply_person_name")
    @ApiModelProperty(value="申请人姓名")
    private String applyPersonName;

    /**
     * 身份证号码
     */
    @TableField(value = "id_number")
    @ApiModelProperty(value="身份证号码")
    private String idNumber;

    /**
     * 争议金额
     */
    @TableField(value = "dispute_money")
    @ApiModelProperty(value="争议金额")
    private BigDecimal disputeMoney;


    /**
     * 企业id
     */
    @TableField(value = "company_id")
    @ApiModelProperty(value="企业id")
    private Long companyId;

    /**
     * 企业名称
     */
    @TableField(exist = false)
    @ApiModelProperty(value="企业名称")
    private String companyName;

    private static final long serialVersionUID = 1L;

    public static final String COL_REMARK = "remark";

    public static final String COL_STATUS = "status";

    public static final String COL_LAWSUIT_FLOW_ID = "lawsuit_flow_id";

    public static final String COL_NAME = "name";

    public static final String COL_APPLY_PERSON_NAME = "apply_person_name";

    public static final String COL_ID_NUMBER = "id_number";

    public static final String COL_DISPUTE_MONEY = "dispute_money";

    public static final String COL_COMPANY_ID = "company_id";
}